LGF_StringToTime (FC / 3.1.0)

Overview

Author: Siemens Digital Industry

Short description

The function converts a variable of the data type String into a variable of the system data type Time.

Block Interface

LGF_StringToTime (FC)
String  timeValue Ret_Val  Time
    
   

Input parameter

IdentifierData type Description
timeValueString Time to be converted as string. MUST have SEPARATOR. Example: `1D-3H-45M-6S-0MS`

Output parameter

IdentifierData type Description
Ret_ValTime Converted time value
Example: `T#1D_3H_45M_6S`

Change log

Version & DateChange description
1.0.0Simatic Systems Support
02.07.2019First released version
1.0.1Simatic Systems Support
09.07.2019Further improvements and code optimization
1.0.2Simatic Systems Support
30.07.2019Add ENO handling
3.0.0Simatic Systems Support
23.04.2020Set version to V3.0.0
Harmonize the version of the whole library
3.0.1Simatic Systems Support
23.02.2021Insert documentation
3.1.0Simatic Systems Support
17.07.2025Implemented separator functionality